package com.site.utils;

/**
 * 枚举类 返回代码
 */
public enum ResultEnum {
    SUCCESS(200,"操作成功"),
    //后台代码问题
    FAILED(500,"操作失败"),
    //前端请求异常
    VALIDATE_FAILED(404,"路径请求不存在");

    private long code;
    private String message;
    private ResultEnum(long code, String message){
        this.code = code;
        this.message = message;
    }

    public long getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
